﻿using System;
using System.Configuration;
using System.Data;
using System.Collections;
using System.IO;
using Combres;
using System.Web.Routing;

/// <summary>
/// Summary description for Global
/// </summary>
public class Global : System.Web.HttpApplication
{
    //new global
    public static string ServiceHost = (ConfigurationSettings.AppSettings["ServiceHost"] != null) ? ConfigurationSettings.AppSettings["ServiceHost"] : "localhost";
    public static string StreetPort = (ConfigurationSettings.AppSettings["StreetPort"] != null) ? ConfigurationSettings.AppSettings["StreetPort"] : "500";
    public static string SearchPort = (ConfigurationSettings.AppSettings["SearchPort"] != null) ? ConfigurationSettings.AppSettings["SearchPort"] : "501";
    public static int NumBalanceSearchPort = (ConfigurationSettings.AppSettings["NumBalanceSearchPort"] != null) ? int.Parse(ConfigurationSettings.AppSettings["NumBalanceSearchPort"]) : 1;
    public static int NumBalanceRenderPort = (ConfigurationSettings.AppSettings["NumBalanceRenderPort"] != null) ? int.Parse(ConfigurationSettings.AppSettings["NumBalanceRenderPort"]) : 1;
    public static int PortSearchRange = 0;

    public static string StreetService = (ConfigurationSettings.AppSettings["StreetService"] != null) ? ConfigurationSettings.AppSettings["StreetService"] : "localhost";
   //End New
   public static object g_objSearchLock = new object();
   
    protected void Application_Start(object sender, EventArgs e)
    {
        RouteTable.Routes.AddCombresRoute("Combres Route");
    }

    protected void Session_Start(object sender, EventArgs e)
    {
       
     }

    protected void Session_End(object sender, EventArgs e)
    {

       
    }

    
    public Global()
    {
       
        //
        // TODO: Add constructor logic here
        //
    }
    
}